import {Schema, model, Document, Model} from "mongoose";

interface LinksDocument extends Document {
    link: string
}

const LinksSchema: Schema = new Schema<LinksDocument>({
    link: {type: String, required: true, unique: true, index: true},
});

export const LinksModel: Model<LinksDocument> = model<LinksDocument>('links', LinksSchema);
